import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '../views/Home.vue'
import productList from '../components/productList.vue'
import productDetail from '../components/productDetail.vue'

Vue.use(VueRouter)
const router = new VueRouter({
 routes : [
  {path:'/',redirect:'/Home'},
  {path:'/Home',component:Home},
  {path:'/productList',component:productList},
  {path:'/productDetail',component:productDetail},
]
})


export default router
